package com.mes.bac.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mes.bac.backend.entity.Dispatch;
import com.mes.bac.backend.vo.WorkstationLoadVO;
import com.mes.bac.backend.vo.WorkstationQueueVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DispatchMapper extends BaseMapper<Dispatch> {
    /**
     * 根据工位ID查询该工位的实时加工队列
     * @param wsid 工位ID
     * @return 队列信息列表
     */
    List<WorkstationQueueVO> getWorkstationQueue(@Param("wsid") String wsid);

    List<WorkstationLoadVO> getWorkstationLoad();
}